﻿//===========================[ 8 / 9 / 2011 LVI ]=============================
//				Copyright c Vitaly Lyaschenko <SkyChameleon@gmail.com>
// 								Header file
// Purpose: Object - Sign
//=============================================================================
#pragma once

#include "IAbstractObject.h"
#include "cPhysics.h"


class BaseObject : public IAbstractObject
{
public:
	BaseObject();
	~BaseObject();

	void update( float deltaTime );
	mat4 getTransform();

	void setPosition( const vec3 pos ) { m_position = pos; }
	void setPosition( const float x, const float y, const float z) 
	{ 
		m_position.x = x;
		m_position.y = y;
		m_position.z = z;
	}

	void setRotate( const float x, const float y, const float z )
	{ 
		angle_X = x; 
		angle_Y = y;
		angle_Z = z;
	}

private:
	vec3 m_position;
	vec3 m_velocity;

	// хранят углы поворота Sign
	float angle_X,
		  angle_Y,
		  angle_Z;
	// скорость вращения Sign
	float speedRotation;
};

BaseObject * createBaseObject();